package com.yonyou.gmmc.service.pointactivity.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * 短信实体
 */
@Table
public class TmFiveYearFeedMsg {
    @Id
    @Column(name = "MSG_ID")
    private Long msgid;
    @Column(name = "OPEN_ID")
    private String openid;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Column(name = "CREAT_DATE")
    private Date creatDate;
    @Column(name = "MSG_PHONE")
    private String msgphone;//发送的手机号
    @Column(name = "MSG_NUM")
    private String msgnum;//手机验证码

    public Long getMsgid() {
        return msgid;
    }

    public void setMsgid(Long msgid) {
        this.msgid = msgid;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public Date getCreatDate() {
        return creatDate;
    }

    public void setCreatDate(Date creatDate) {
        this.creatDate = creatDate;
    }

    public String getMsgphone() {
        return msgphone;
    }

    public void setMsgphone(String msgphone) {
        this.msgphone = msgphone;
    }

    public String getMsgnum() {
        return msgnum;
    }

    public void setMsgnum(String msgnum) {
        this.msgnum = msgnum;
    }
}
